package com.zhq.blog.core.domain.game.support;

import javax.persistence.MappedSuperclass;

import com.zhq.blog.core.domain.BasePersistentDomain;

/**
 * @title:AutoBetBase.java
 * @package com.zhq.blog.core.domain.game.support
 * @author 张恒强
 * @date 2014年12月26日 下午2:12:41
 * @version V1.0
 */
@SuppressWarnings("rawtypes")
@MappedSuperclass
public class AutoBetBase extends BasePersistentDomain{
	
	public enum AutoBetType{
		AUTO_BET("自动投注"),PERMUTATION_BET("对号投注"),INTELLIGENT_BET("智能投注");
		
		public String description;
		private AutoBetType(final String description) {
			this.description = description;
		}
	}
	
	public enum RunningState{
		RUNNING("正在运行"),STOPED("已停止");
		public String description;
		RunningState(final String description){
			this.description = description;
		}
	}
	
	private long gameId;//游戏类型ID
	
	private long userId;
	
	private String name;
	
	private long startBetPeriod;//开始期数
	
	private long executePeriod;// 执行期数
	
	private long superLimit;//金币上限  账户金币到这些金币后就不玩了。。。。
	
	private long lowerLimit; //金币下限  账户金币下降到这些金币后就不玩了。。
	
	private RunningState state;//状态  已停止、正在运行
	
	private boolean fromHead = true;//是否从头开始

	public boolean getFromHead() {
		return fromHead;
	}

	public void setFromHead(boolean fromHead) {
		this.fromHead = fromHead;
	}

	public long getGameId() {
		return gameId;
	}

	public void setGameId(long gameId) {
		this.gameId = gameId;
	}

	public RunningState getState() {
		return state;
	}

	public void setState(RunningState state) {
		this.state = state;
	}

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public long getStartBetPeriod() {
		return startBetPeriod;
	}

	public void setStartBetPeriod(long startBetPeriod) {
		this.startBetPeriod = startBetPeriod;
	}

	public long getExecutePeriod() {
		return executePeriod;
	}

	public void setExecutePeriod(long executePeriod) {
		this.executePeriod = executePeriod;
	}

	public long getSuperLimit() {
		return superLimit;
	}

	public void setSuperLimit(long superLimit) {
		this.superLimit = superLimit;
	}

	public long getLowerLimit() {
		return lowerLimit;
	}

	public void setLowerLimit(long lowerLimit) {
		this.lowerLimit = lowerLimit;
	}

}
